package com.linln.admin.goods.validator;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author fln
 * @date 2021/01/19
 */
@Data
public class GoodsValid implements Serializable {
    @NotEmpty(message = "商品名称不能为空")
    private String title;
    @NotNull(message = "购买方式不能为空")
    private Byte buyType;
    @NotNull(message = "价格不能为空")
    private BigDecimal price;
    @NotEmpty(message = "轮播图不能为空")
    private String image1;
    @NotEmpty(message = "缩略图不能为空")
    private String image2;
    @NotEmpty(message = "详情不能为空")
    private String detail;
    @NotNull(message = "推荐首页不能为空")
    private Byte recommend_status;
}